<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="fragments :: head(~{::title})">
    <title>用户注册</title>
</head>
<body>
<!--轮播图-->
<div th:replace="fragments :: banner"></div>
<div class="am-tabs qiehuan" data-am-tabs>
    <ul class="am-tabs-nav am-nav am-nav-tabs" style="margin-bottom: 10px">
        <li class="am-active"><a href="#">用户注册</a></li>
    </ul>
    <div>
        <div class="am-tab-panel">
            <form th:if="${errorMsg == null}" th:action="@{/publiz/register}" method="post">
                <input type="text" class="tab-input" name="username" placeholder="用户名"/>
                <input type="password" class="tab-input" name="password" placeholder="密码"/>
                <input type="text" class="tab-input" name="nickname" placeholder="昵称"/>
                <input type="text" class="tab-input" name="phone" placeholder="手机号码"/>
                <button type="submit" class="tab-btn">注册</button>
            </form>
            <form th:if="${errorMsg != null}" th:action="@{/publiz/register}" method="post">
                <input type="text" class="tab-input" name="username" placeholder="用户名" th:value="${session.temporary.username}"/>
                <input type="password" class="tab-input" name="password" placeholder="密码" th:value="${session.temporary.password}"/>
                <input type="text" class="tab-input" name="nickname" placeholder="昵称" th:value="${session.temporary.nickname}"/>
                <input type="text" class="tab-input" name="phone" placeholder="手机号码" th:value="${session.temporary.phone}"/>
                <p th:text="${errorMsg}" style="color: red"></p>
                <button type="submit" class="tab-btn">注册</button>
            </form>
        </div>
    </div>
</div>
<div class="h50"></div>
<div th:replace="fragments :: footer"></div>
</body>
</html>
